package net.dodoman;

public class Binary {
	static int c = 2;
	static double b = 0.78;
	static String s = "267";

	public static void main(String[] arg) {
		System.out.println(Integer.toBinaryString(c));
		System.out.println(Integer.toHexString(c));
		System.out.println(Integer.toOctalString(c));
		System.out.println(Integer.parseInt(s));
		// System.out.println(Integer.parseInt(s,2));
		System.out.println(anySystemToTen(b));
	}

	private static String anySystemToTen(double longNum) {
		String strNum = String.valueOf(longNum);
		// 将取得的整数部份和小数部份的进制结合在一起，并将其还原为浮点数
		// strNum=intToTenSystem(strInt,JZ)+"."+lessToTenSystem(strLess,JZ);
		return strNum;
	}

}